﻿using System;
using UnityEngine;
using UnityEngine.Rendering;

// Token: 0x0200015D RID: 349
public class WearLiquidObj
{
	// Token: 0x0600090C RID: 2316 RVA: 0x000347A8 File Offset: 0x000329A8
	public WearLiquidObj(GameObject root)
	{
		this.root = root;
		this.upper_all_f01 = this.Find("N_a_f01");
		this.upper_all_f02 = this.Find("N_a_f02");
		this.upper_all_b01 = this.Find("N_a_b01");
		this.upper_all_b02 = this.Find("N_a_b02");
		this.upper_half_f01 = this.Find("N_b_f01");
		this.upper_half_f02 = this.Find("N_b_f02");
		this.upper_half_b01 = this.Find("N_b_b01");
		this.upper_half_b02 = this.Find("N_b_b02");
		this.lower_all_f01 = this.Find("N_d_f01");
		this.lower_all_f02 = this.Find("N_d_f02");
		this.lower_all_b01 = this.Find("N_d_b01");
		this.lower_all_b02 = this.Find("N_d_b02");
		this.lower_half_f01 = this.Find("N_n_f01");
		this.lower_half_f02 = this.Find("N_n_f02");
		this.lower_half_b01 = this.Find("N_n_b01");
		this.lower_half_b02 = this.Find("N_n_b02");
		Renderer[] componentsInChildren = root.GetComponentsInChildren<Renderer>();
		for (int i = 0; i < componentsInChildren.Length; i++)
		{
			componentsInChildren[i].lightProbeUsage = LightProbeUsage.Off;
			componentsInChildren[i].reflectionProbeUsage = ReflectionProbeUsage.Off;
		}
	}

	// Token: 0x0600090D RID: 2317 RVA: 0x00034900 File Offset: 0x00032B00
	private GameObject Find(string name)
	{
		Transform transform = Transform_Utility.FindTransform(this.root.transform, name);
		if (transform != null)
		{
			transform.gameObject.SetActive(false);
			return transform.gameObject;
		}
		return null;
	}

	// Token: 0x0600090E RID: 2318 RVA: 0x00034940 File Offset: 0x00032B40
	public void SetShow(bool upperAll, bool upperHalf, bool lowerAll, bool lowerHalf, int[] sperms)
	{
		int num = sperms[1];
		int num2 = sperms[2];
		int num3 = sperms[3];
		int num4 = sperms[4];
		if (this.upper_all_f01)
		{
			this.upper_all_f01.SetActive(upperAll && num == 1);
		}
		if (this.upper_all_f02)
		{
			this.upper_all_f02.SetActive(upperAll && num == 2);
		}
		if (this.upper_all_b01)
		{
			this.upper_all_b01.SetActive(upperAll && num2 == 1);
		}
		if (this.upper_all_b02)
		{
			this.upper_all_b02.SetActive(upperAll && num2 == 2);
		}
		if (this.upper_half_f01)
		{
			this.upper_half_f01.SetActive(upperHalf && num == 1);
		}
		if (this.upper_half_f02)
		{
			this.upper_half_f02.SetActive(upperHalf && num == 2);
		}
		if (this.upper_half_b01)
		{
			this.upper_half_b01.SetActive(upperHalf && num2 == 1);
		}
		if (this.upper_half_b02)
		{
			this.upper_half_b02.SetActive(upperHalf && num2 == 2);
		}
		if (this.lower_all_f01)
		{
			this.lower_all_f01.SetActive(lowerAll && num3 == 1);
		}
		if (this.lower_all_f02)
		{
			this.lower_all_f02.SetActive(lowerAll && num3 == 2);
		}
		if (this.lower_all_b01)
		{
			this.lower_all_b01.SetActive(lowerAll && num4 == 1);
		}
		if (this.lower_all_b02)
		{
			this.lower_all_b02.SetActive(lowerAll && num4 == 2);
		}
		if (this.lower_half_f01)
		{
			this.lower_half_f01.SetActive(lowerHalf && num3 == 1);
		}
		if (this.lower_half_f02)
		{
			this.lower_half_f02.SetActive(lowerHalf && num3 == 2);
		}
		if (this.lower_half_b01)
		{
			this.lower_half_b01.SetActive(lowerHalf && num4 == 1);
		}
		if (this.lower_half_b02)
		{
			this.lower_half_b02.SetActive(lowerHalf && num4 == 2);
		}
	}

	// Token: 0x040008C7 RID: 2247
	public GameObject root;

	// Token: 0x040008C8 RID: 2248
	private GameObject upper_all_f01;

	// Token: 0x040008C9 RID: 2249
	private GameObject upper_all_f02;

	// Token: 0x040008CA RID: 2250
	private GameObject upper_all_b01;

	// Token: 0x040008CB RID: 2251
	private GameObject upper_all_b02;

	// Token: 0x040008CC RID: 2252
	private GameObject upper_half_f01;

	// Token: 0x040008CD RID: 2253
	private GameObject upper_half_f02;

	// Token: 0x040008CE RID: 2254
	private GameObject upper_half_b01;

	// Token: 0x040008CF RID: 2255
	private GameObject upper_half_b02;

	// Token: 0x040008D0 RID: 2256
	private GameObject lower_all_f01;

	// Token: 0x040008D1 RID: 2257
	private GameObject lower_all_f02;

	// Token: 0x040008D2 RID: 2258
	private GameObject lower_all_b01;

	// Token: 0x040008D3 RID: 2259
	private GameObject lower_all_b02;

	// Token: 0x040008D4 RID: 2260
	private GameObject lower_half_f01;

	// Token: 0x040008D5 RID: 2261
	private GameObject lower_half_f02;

	// Token: 0x040008D6 RID: 2262
	private GameObject lower_half_b01;

	// Token: 0x040008D7 RID: 2263
	private GameObject lower_half_b02;
}
